Skip to content

docs: add docusaurus-plugin-copy-page-button#4499

Open
portdeveloper wants to merge 2 commits into
ionic-team:mainfrom
portdeveloper:add-copy-page-button
Open

docs: add docusaurus-plugin-copy-page-button#4499
portdeveloper wants to merge 2 commits into
ionic-team:mainfrom
portdeveloper:add-copy-page-button

Conversation

@portdeveloper
Copy link
Copy Markdown

What this adds

A "Copy page" button in the docs sidebar that exports the current Ionic docs page as clean markdown, with one-click "Open in ChatGPT", "Open in Claude", and "Open in Gemini" actions.

Why for Ionic

Mobile developers using Ionic frequently ask AI tools for help with Capacitor APIs, native plugins, platform-specific configuration, and lifecycle quirks. Right now the flow is: scroll the docs, manually select page content (avoiding nav and code-block UI), paste, then ask the question. With this plugin it's: click → "Open in Claude".

The plugin is currently shipping on Ethereum execution-apis, Sui (Mysten Labs), Walrus, Seal, SuiNS, Monad, Flare, Kaia, Nillion, Chronicle, and Cardano docs. Also listed in the official Docusaurus community plugins.

Changes

  • Adds docusaurus-plugin-copy-page-button to dependencies in package.json (^0.4.2, alphabetical position next to existing docusaurus-plugin-* entries)
  • Appends the plugin string to the plugins array in docusaurus.config.js

The button auto-injects into the table-of-contents sidebar. No further config required, theme-aware, mobile-friendly, ~5kb client.

Links

Happy to revert or adjust if this doesn't fit the project's direction.

@portdeveloper portdeveloper requested a review from a team as a code owner May 13, 2026 19:37
@portdeveloper portdeveloper requested a review from ShaneK May 13, 2026 19:37
@vercel
Copy link
Copy Markdown

vercel Bot commented May 13, 2026

@portdeveloper is attempting to deploy a commit to the Ionic Team on Vercel.

A member of the Team first needs to authorize it.

@vercel
Copy link
Copy Markdown

vercel Bot commented May 20, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
ionic-docs Ready Ready Preview, Comment May 20, 2026 6:55pm

Request Review

@brandyscarney
Copy link
Copy Markdown
Member

Thank you for the PR! While we aren't against adding this, the default positioning looks a bit off when you scroll up/down with the header: Preview

I tried adding some static positioning but it ends up looking like this:

CleanShot 2026-05-20 at 14 46 11 CleanShot 2026-05-20 at 14 46 27

I think this would look nice if we could statically position it in the header:

copy page

Or even in the side menu.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants